

export default class {
    toPage = (page) => {
        return () => {
            if (page === 'edit') {
                const list = this.models.projectListM.get('data');
                
                this.models.proInfoM.set({
                    formData: {
                        projectName: '',
                        endLine: '',
                        gitUrl: '',
                        developer: '',
                        detail: ''
                    },
                    currentRowIndex: list.length
                });
            }
            this.models.pageM.set({
                page: page 
            });
        }
    }
}